/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.miracleteam.miracle.services.servicesImpl;

import com.miracleteam.miracle.dao.ChiTietThongTinChoMatHangDAO;
import com.miracleteam.miracle.dao.daoImpl.ChiTietThongTinChoMatHangDAOImpl;
import com.miracleteam.miracle.entities.Chitietthongtinchomathang;
import com.miracleteam.miracle.services.ChiTietThongTinChoMatHangService;
import java.util.List;

/**
 *
 * @author DangKhoa
 */
public class ChiTietThongTinChoMatHangServiceImpl implements ChiTietThongTinChoMatHangService {

    public List LayThongTinChoMatHang(String maMH) {
        ChiTietThongTinChoMatHangDAO ctDao=new ChiTietThongTinChoMatHangDAOImpl();
        return ctDao.LayThongTinChoMatHang(maMH);
    }
    public String PhatSinhCTTT(){
         ChiTietThongTinChoMatHangDAO ctDao=new ChiTietThongTinChoMatHangDAOImpl();
        return ctDao.PhatSinhCTTT();
     }
     public boolean  ThemCTThongTin(Chitietthongtinchomathang ct){
          ChiTietThongTinChoMatHangDAO ctDao=new ChiTietThongTinChoMatHangDAOImpl();
         return ctDao.ThemCTThongTin(ct);
     }
       public  boolean capNhatChiTietTTMatHang(Chitietthongtinchomathang ct)
       {
            ChiTietThongTinChoMatHangDAO ctDao=new ChiTietThongTinChoMatHangDAOImpl();
            return ctDao.capNhatChiTietTTMatHang(ct);
       }
       public Chitietthongtinchomathang LayCTThongTinMH(String maCTTT)
       {
           ChiTietThongTinChoMatHangDAO ctDao=new ChiTietThongTinChoMatHangDAOImpl();
           return ctDao.LayCTThongTinMH(maCTTT);
       }
    
}
